<template>
  <Table :title-list="tableTitle" :table-data="tableData"> </Table>
</template>
<script setup lang="ts">
import Table from './table.vue'

import { TableTitle } from './constant'

import { IActivityAir } from './types'

import { data } from './falsedata'
import { useRouter } from 'vue-router'
const router = useRouter()
const tableTitle = ref(TableTitle)
const tableData = ref([])
function getData(): Promise<IActivityAir[]> {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve(data)
    }, 200)
  })
}

async function getActiviesList() {
  tableData.value = await getData()
}

getActiviesList()
</script>
<style lang="scss">
@import './styles/index';
@import './styles/t2';
</style>
